package generic;

public class Employee {

    private String name;

    protected int salary;

    public Employee() {}

    public Employee(String name, int salary) {
        this.name = name;
        this.salary = salary;
    }

    public Employee(String name) {
        this(name, 100);
    }

    // @Override
    // public int compareTo(Employee other) {
    //     return this.getSalary() - other.salary;
    // }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param salary the salary to set
     */
    public void setSalary(int salary) {
        this.salary = salary;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the salary
     */
    public int getSalary() {
        return salary;
    }
    

}